export default {
    props: {
        index: Number,
        disabled: Boolean,
        scoreIs: Boolean,
        question: { type: Object, required: true }
    },
    computed: {
        isValid() {
            if (this.question?.attribute?.required === 1) {
                return this.isFinished();
            }
            return true;
        }
    },
    methods: {
        validate() {
            return this.isValid;
        }
    }
};